﻿import request from '/@/utils/request';
enum Api {
  AddYnRoadQdetail = '/api/ynRoadQdetail/add',
  DeleteYnRoadQdetail = '/api/ynRoadQdetail/delete',
  UpdateYnRoadQdetail = '/api/ynRoadQdetail/update',
  PageYnRoadQdetail = '/api/ynRoadQdetail/page',
  DetailYnRoadQdetail = '/api/ynRoadQdetail/detail',
}

// 增加评定明细表
export const addYnRoadQdetail = (params?: any) =>
	request({
		url: Api.AddYnRoadQdetail,
		method: 'post',
		data: params,
	});

// 删除评定明细表
export const deleteYnRoadQdetail = (params?: any) => 
	request({
			url: Api.DeleteYnRoadQdetail,
			method: 'post',
			data: params,
		});

// 编辑评定明细表
export const updateYnRoadQdetail = (params?: any) => 
	request({
			url: Api.UpdateYnRoadQdetail,
			method: 'post',
			data: params,
		});

// 分页查询评定明细表
export const pageYnRoadQdetail = (params?: any) => 
	request({
			url: Api.PageYnRoadQdetail,
			method: 'post',
			data: params,
		});

// 详情评定明细表
export const detailYnRoadQdetail = (id: any) => 
	request({
			url: Api.DetailYnRoadQdetail,
			method: 'get',
			data: { id },
		});


